package com.chinacoal.microservice.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.chinacoal.microservice.pojo.CcmsSmartleasingRegionalAnalysis;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author zhuliang
 * @version V1.0
 * @Description: 数据化中心-区域分析-mybatis-plus接口
 * @date 2020-12-29 14：40
 */
public interface CcmsSmartleasingRegionalAnalysisMapper extends BaseMapper<CcmsSmartleasingRegionalAnalysis> {

    /**
     * @Description: 批量添加
     * @author zhuliang
     * @date 2020/12/29 15:51
     */
    void bathAdd(List<CcmsSmartleasingRegionalAnalysis> regionalAnalyses);

    /**
     * @Description: 得到对应楼宇所需要的记录信息
     * @author zhuliang
     * @date 2020/12/30 15:39
     */
    List<CcmsSmartleasingRegionalAnalysis> getRecordInformation();

    /**
     * @Description: 根据费用id，累加缴费金额
     * @author zhuliang
     * @date 2020/12/31 10:03
     */
    void updateByCostId(@Param("amount") BigDecimal amount,
                        @Param("lastUpdateDate") Date lastUpdateDate,
                        @Param("lastUpdatedBy") Integer lastUpdatedBy,
                        @Param("pkExpenseManagId") String pkExpenseManagId);

    /**
     * @Description: 根据订单号，累加缴费金额
     * @author zhuliang
     * @date 2020/12/31 10:04
     */
    void updateByWechat(@Param("amount") BigDecimal amount,
                        @Param("lastUpdateDate") Date lastUpdateDate,
                        @Param("lastUpdatedBy") Integer lastUpdatedBy,
                        @Param("orderNumber") String orderNumber);

    /**
     * @Description: 查询区域分析数据
     * @author zhuliang
     * @date 2020/12/31 11:01
     */
    List<CcmsSmartleasingRegionalAnalysis> getAll(@Param("pageSize") Integer pageSize);
}
